proc op {nick chan otbn1 host botnet} {   
global botnick home bcast
if {![botisop $chan]} {
  putserv "NOTICE $nick :ERROR - Bot dosen't have op status (+o) on $chan"
  return 0
  }  
if {$otbn1 == ""} {
  set otbn1 $nick
if {[isop $nick $chan]} {
  putserv "NOTICE $nick :ERROR - Already Op'd - You are currently op'd on $chan"
  return 0
  }  
  putlog "!$nick ($host)! op $chan $nick"
  putserv "MODE $chan +o $nick"
  putserv "NOTICE $nick :Sucessfully Op'd $nick in $chan"
if {$bcast == "1"} {
  putserv "PRIVMSG $home :Op'd \002$nick\002 ($host) In $chan"
  }
  return 0
  }
if {[isop $botnet $chan]} {
  putserv "NOTICE $nick :ERROR - Already Op'd - $botnet is currently op'd on $chan"
  return 0
  } else {
if {[onchan $botnet $chan]} {
  putlog "!$nick ($host)! op $chan $botnet"
  pushmode $chan +o $botnet
  putserv "NOTICE $nick :Sucessfully Op'd $botnet in $chan"
if {$bcast == "1"} {
  putserv "PRIVMSG $home :Op'd \002$botnet\002 In $chan (Requested By: \002$nick\002 ($host))"
  }
  return 0
  } else {
  putserv "NOTICE $nick :ERROR - Not Found - $botnet not found on $chan"
  }
  }
  }


